<div class="toolbar">
    <h4>角色管理</h4>
    <div class="m-btn">
        <button (click)="showAddModal(roleTreeNode)" class="btn btn-success">添加新角色</button>
        <button (click)="loadDatas()" class="btn btn-white">
            <i class="iconfont icon-refresh mr-1"></i>刷新数据</button>
    </div>
</div>
<div class="card mt-2">
    <div class="card-body">
        <app-role-ul *ngFor="let roleGroup of roleTreeNode.roleChildren" (insertEvent)="showAddModal($event)" (updateEvent)="showEditModal($event)"
            (deleteEvent)="confirmDelete($event)" [roleGroup]="roleGroup">
        </app-role-ul>
    </div>
</div>